package com.fowo.api.model.position.inventory;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import javax.validation.constraints.*;
import lombok.Data;

/**
 * 仓位库存 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Data
public class PositionInventoryImportPo {

  /** 仓位 */
  @ExcelProperty("*仓位")
  @NotBlank(message = "仓位不能为空")
  @Size(max = 50, message = "仓位长度不能超过50")
  private String positionStorageBin;

  /** 仓位类型 */
  @ExcelProperty("*仓位类型")
  @NotBlank(message = "仓位类型不能为空")
  @Size(max = 50, message = "仓位类型长度不能超过50")
  private String type;

  /** 仓库 */
  @ExcelProperty("*仓库")
  @NotBlank(message = "仓库不能为空")
  @Size(max = 50, message = "仓库长度不能超过50")
  private String warehouseName;

  /** 款名 */
  @ExcelProperty("款名")
  @Size(max = 50, message = "款名长度不能超过50")
  private String tn;

  /** SPU */
  @ExcelProperty("SPU")
  @Size(max = 500, message = "SPU长度不能超过500")
  private String spuSpuName;

  /** 品名 */
  @ExcelProperty("*品名")
  @NotBlank(message = "品名不能为空")
  @Size(max = 500, message = "品名长度不能超过500")
  private String tradeNameName;

  /** SKU */
  @ExcelProperty("SKU")
  @Size(max = 50, message = "SKU长度不能超过50")
  private String sku;

  /** MSKU */
  @ExcelProperty("MSKU")
  @Size(max = 50, message = "MSKU长度不能超过50")
  private String msku;

  /** FNSKU */
  @ExcelProperty("FNSKU")
  @Size(max = 50, message = "FNSKU长度不能超过50")
  private String fnsku;

  /** 属性 */
  @ExcelProperty("*属性")
  @NotBlank(message = "属性不能为空")
  @Size(max = 50, message = "属性长度不能超过50")
  private String attribute;

  /** 店铺 */
  @ExcelProperty("店铺")
  @Size(max = 50, message = "店铺长度不能超过50")
  private String shop;

  /** 未锁定量 */
  @ExcelProperty("未锁定量")
  @IntegerString(message = "未锁定量数值格式不正确", label = "未锁定量")
  private String unlockNum;

  /** 锁定量 */
  @ExcelProperty("锁定量")
  @IntegerString(message = "锁定量数值格式不正确", label = "锁定量")
  private String lockNum;

  /** 总量 */
  @ExcelProperty("总量")
  @IntegerString(message = "总量数值格式不正确", label = "总量")
  private String totalNum;
}
